package com.litianhao.nowcode.dao;

import com.litianhao.nowcode.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author litianhao
 * @create 2020-05-25 20:34
 */
@Mapper
public interface CommentMapper {

    List<Comment> selectCommentByEntity(int entityType,int entityId,int offset,int limit);

    int selectCountByEntity(int entityType,int entityId);

    //增加评论
    int insertComment(Comment comment);

    Comment selectCommentById(int id);
}
